﻿﻿using System;
using System.Collections.Generic;
using System.Web;
namespace WebMvc.App.Models.Tips.Common
{
    public class sys_config
    {
		public string id=null;
		public string name=null;
		public string info=null;
		public string value=null;
        public string __name__;
        public sys_config(string name)
        {
            this.__name__ = name;
			this.id = string.Format("{0}.id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.info = string.Format("{0}.info",__name__);
			this.value = string.Format("{0}.value",__name__);
        }
        public sys_config()
        {
			this.id = string.Format("{0}.id",__name__);
			this.name = string.Format("{0}.name",__name__);
			this.info = string.Format("{0}.info",__name__);
			this.value = string.Format("{0}.value",__name__);
        }
        public override string ToString()
        {
            if (__name__ == null)
            {
                return "sys_config";
            }
            else
            {
                return string.Format("sys_config as {0}",__name__);
            }
        }
    }
}